<?php
class CustomController extends Zend_Controller_Action
{
	protected $_alias = 'default';

	public function init() {
		$alias = $this->_getParam('alias');
		if ($alias) $this->_alias = $alias;		
	}

	public function indexAction() {
		$scriptPath = '/custom/' . $this->_alias .'.phtml';
		try {
			$this->renderScript($scriptPath);
		} catch (Exception $e) {
			$this->renderScript('/custom/default.phtml');
		}		
	}
}